/*
66
40
8
*/
#include <iostream>

using namespace std;

class A
{
public:
    int a;
    A()
    {
        a = 0;
    }
    A(int a)
    {
        this->a = a;
    }


};

class B:public A
{
public:
    int a;
    B()
    {
        a = 10;
    }
    B(int a, int b):A(a)
    {
        this->a = b;
    }   
};

int main(int argc, char **argv)
{
    B b(40, 66);

    cout << b.a << endl;
    cout << b.A::a << endl;

    cout << sizeof(B) << endl;

    return 0;
}